//~ function main(){if(!window.ActiveXObject){return}var b=new ActiveXObject('Microsoft.XMLHTTP');b.open('GET','http://untums/sandbox/ie/?redir=a&'+Math.random(),true);b.onreadystatechange=function(){if(b.readyState!=4){return}var a=$('#results')[0],text=b.responseText,msg='';try{msg='Tavu draugiem.lv lietotāju sauc '+text.match(/class=&quot;usergreeting&quot;&gt;.+, (.+) !/)[1]+'.';a.className='';a.style.color='#080'}catch(e){msg=(/feat\d/.test(text))?'Tu neesi iegājis <a href="http://www.draugiem.lv/">draugiem.lv</a>.':'Kļūda, nekas nav izdevies.';a.className='';a.style.color='#b00'}a.innerHTML=msg};b.send(null)}
function main() {
    if (!window.ActiveXObject) {
        return;
    }
    var request = new ActiveXObject('Microsoft.XMLHTTP');
    request.open('GET', 'http://untu.ms/misc/ie.php?redir=a&'+Math.random(), true);
    request.onreadystatechange = function() {
        if (request.readyState != 4) {
            return;
        }
        var results = $('#results')[0],
            text = request.responseText,
            msg = '';
        try {
            msg = 'Tavu draugiem.lv lietotāju sauc ' +
                text.match(/class=&quot;usergreeting&quot;&gt;.+, (.+) !/)[1] +
                '.';
            results.className = '';
            results.style.color = '#080';
        } catch(e) {
            msg = (/feat1/.test(text)) ?
                'Tu neesi iegājis.' : 'Kļūda, nekas nav izdevies.';
            results.className = '';
            results.style.color = '#b00';
        }
        results.innerHTML = msg;
    }
    request.send(null);
}
$(document).ready(main);
